package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OblistDetailMapper;
import com.ruoyi.system.domain.OblistDetail;
import com.ruoyi.system.service.IOblistDetailService;

/**
 * 出库单详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-02
 */
@Service
public class OblistDetailServiceImpl implements IOblistDetailService 
{
    @Autowired
    private OblistDetailMapper oblistDetailMapper;

    /**
     * 查询出库单详情
     * 
     * @param id 出库单详情主键
     * @return 出库单详情
     */
    @Override
    public OblistDetail selectOblistDetailById(Long id)
    {
        return oblistDetailMapper.selectOblistDetailById(id);
    }

    /**
     * 查询出库单详情列表
     * 
     * @param oblistDetail 出库单详情
     * @return 出库单详情
     */
    @Override
    public List<OblistDetail> selectOblistDetailList(OblistDetail oblistDetail)
    {
        return oblistDetailMapper.selectOblistDetailList(oblistDetail);
    }

    /**
     * 新增出库单详情
     * 
     * @param oblistDetail 出库单详情
     * @return 结果
     */
    @Override
    public int insertOblistDetail(OblistDetail oblistDetail)
    {
        return oblistDetailMapper.insertOblistDetail(oblistDetail);
    }

    /**
     * 修改出库单详情
     * 
     * @param oblistDetail 出库单详情
     * @return 结果
     */
    @Override
    public int updateOblistDetail(OblistDetail oblistDetail)
    {
        return oblistDetailMapper.updateOblistDetail(oblistDetail);
    }

    /**
     * 批量删除出库单详情
     * 
     * @param ids 需要删除的出库单详情主键
     * @return 结果
     */
    @Override
    public int deleteOblistDetailByIds(Long[] ids)
    {
        return oblistDetailMapper.deleteOblistDetailByIds(ids);
    }

    /**
     * 删除出库单详情信息
     * 
     * @param id 出库单详情主键
     * @return 结果
     */
    @Override
    public int deleteOblistDetailById(Long id)
    {
        return oblistDetailMapper.deleteOblistDetailById(id);
    }
}
